package com.pyue.eam.app.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonRawValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 导航栏
 *
 * @author eam
 * @date 2023-06-08 11:18:46
 */
@Data
@TableName("app_tabbar")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "导航栏")
@Accessors(chain = true)
public class AppTabbarEntity extends AppBaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 类别id(1为企业2为团长3职工9管理员)
     */
    @Schema(description = "类别id")
    private Integer typeId;

    /**
     * 导航名称
     */
    @Schema(description = "导航名称")
    private String name;

    @Schema(description = "排序值")
    private Integer orderNum;

    /**
     * 未选图标
     */
    @Schema(description = "未选图标")
    private String selected;

    /**
     * 已选图标
     */
    @Schema(description = "已选图标")
    private String unselected;

    /**
     * 链接地址
     */
    @Schema(description = "链接地址")
    @JsonRawValue
    @JsonDeserialize()
    private String link;


}
